package pojo

import mapset "github.com/deckarep/golang-set"

type FeatureItem struct {
	Id  int    `json:"id"`
	Url string `json:"url"`
}

type FeatureResult struct {
	Code  int `json:"code"`
	Count int `json:"count"`
	Data  []struct {
		Img     string `json:"img"`
		Feature string `json:"feature"`
	} `json:"data"`
	Message string `json:"message"`
}

type SimilarityData struct {
	Source FeatureItem   `json:"source"`
	Target []FeatureItem `json:"target"`
}

type Groups struct {
	Id      int
	Members []int
}

type DbScanSegmentResult struct {
	Notices mapset.Set
	Groups  map[FeatureItem]mapset.Set
	ToMap   map[int]*FeatureItem
	Share   []int
}
